import Vue from 'vue'
import VueRouter from 'vue-router'
import  SS from '../components/SS.vue'
import  CampusBinhai from '../components/CampusBinhai.vue'
import  CampusChashan from '../components/CampusChashan.vue'
import  CampusYueqing from '../components/CampusYueqing.vue'
import  Login from '../components/Login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: SS
  },
  {
    path: '/CampusBinhai',
    name: 'Binhai',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    // component: function () {
    //   return import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    // }
    component:CampusBinhai
  },
  {
    path: '/CampusChashan',
    name: 'Chashan',
    component: CampusChashan
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  },
  {
    path: '/CampusYueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
